﻿using FytSoa.Common.Utils;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace FytSoa.ApiService.Controllers;

[AllowAnonymous]
public class DeviceController  : ApiController
{
    [HttpGet("system/info")]
    public IActionResult GetSystemInfo()
    {
        return Ok(DeviceUtils.Instance.GetSystemInfo());
    }
    
    [HttpGet("system/config")]
    public IActionResult GetSystemConfig()
    {
        return Ok(DeviceUtils.Instance.GetSystemConfig());
    }
}